package cn.edu.bcu.ls.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Question;
import cn.edu.bcu.ls.mapper.QuestionMapper;
import cn.edu.bcu.ls.serviceImpl.QuestionService;

@Service
public class QuestionServiceImpl implements QuestionService{

    @Resource
    private QuestionMapper questionMapper;

    @Override
    public int deleteByPrimaryKey(Integer qId) {
        return questionMapper.deleteByPrimaryKey(qId);
    }

    @Override
    public int insert(Question record) {
        return questionMapper.insert(record);
    }

    @Override
    public int insertSelective(Question record) {
        return questionMapper.insertSelective(record);
    }

    @Override
    public Question selectByPrimaryKey(Integer qId) {
        return questionMapper.selectByPrimaryKey(qId);
    }

    @Override
    public int updateByPrimaryKeySelective(Question record) {
        return questionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Question record) {
        return questionMapper.updateByPrimaryKey(record);
    }

}
